package com.Hsu.book.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Hsu琛君珩
 * @ClassName:BookInfo
 * @date 2024-01-04
 * @apiNote
 * @Version: v1.0
 */

@Data
public class BookInfo {
    //图书ID
    private Integer id;
    //书名
    private String bookName;
    //作者
    private String author;
    //数量
    private Integer count;
    //价格
    //前端展示精度
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal price;
    //出版社
    private String publish;
    //状态
    private Integer status;//1-可借阅 2-不可借阅
    private String statusCN;
    private Date createTime;
    private Date updateTime;
}